<%@page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP</title>
</head>

<body>
	<%
	    ApplicationContext content = WebApplicationContextUtils.getWebApplicationContext(application);
	    int i = 1;
	    for (String beanName : content.getBeanDefinitionNames())
	    {
	        out.println(i + "." + beanName + "<br>");
	        i++;
	    }
	%>
</body>
</html>
